# 作者：小七
# 2025年01月03日
class Tool:
    count = 0

    def __init__(self, name):
        self.name = name
        Tool.count += 1

    def func(self):
        print(f'{self.name}的功能')

    @classmethod
    def show_tool_count(cls):
        print(f"工具对象总数为{Tool.count}")

    @staticmethod
    def help():
        print('帮助信息')


if __name__ == '__main__':
    tool1 = Tool("斧头")
    print(Tool.count)
    tool2 = Tool("榔头")
    print(Tool.count)

    Tool.show_tool_count()
    Tool.help()
